import  {get,post} from  "../model/http";
import  api from  "../model/api";
import menuModel from "./menuModel";


const  menu = {
    add :(data:menuModel)=>post(api.menu.add,data),
    list:(params?:menuModel)=>get(api.menu.list,params)
}

const  addmenu  = menu.add;
const  menulist  = menu.list

export  {
    addmenu,
    menulist
}